package com.mao.other;

import java.io.IOException;

/**
 * @author Totoro
 * @date 2020/6/10
 * @explain:
 */
public class ExtendsClass extends Base {
    @Override
    public ExtendsClass f1() {
       return new ExtendsClass();
    }
    @Override
    public String toString() {
        return "ExtendsClass";
    }
    public static void main(String[] args) throws IOException {
        Base b = new ExtendsClass();
        Base bb = b.f1();
        String s = bb.toString();
        System.out.println(s);
    }
}
